<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Doxygen: pcl::octree::OctreeNodePool&lt; NodeT &gt; 模板类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Doxygen
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classpcl_1_1octree_1_1_octree_node_pool.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public 成员函数</a> &#124;
<a href="#pro-attribs">Protected 属性</a> &#124;
<a href="classpcl_1_1octree_1_1_octree_node_pool-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">pcl::octree::OctreeNodePool&lt; NodeT &gt; 模板类 参考</div>  </div>
</div><!--header-->
<div class="contents">

<p><b>Octree</b> node pool  
 <a href="classpcl_1_1octree_1_1_octree_node_pool.html#details">更多...</a></p>

<p><code>#include &lt;<a class="el" href="octree__node__pool_8h_source.html">octree_node_pool.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public 成员函数</h2></td></tr>
<tr class="memitem:af8d74b5d1aaf904968b7a7ed1812c918"><td class="memItemLeft" align="right" valign="top"><a id="af8d74b5d1aaf904968b7a7ed1812c918"></a>
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html#af8d74b5d1aaf904968b7a7ed1812c918">OctreeNodePool</a> ()</td></tr>
<tr class="memdesc:af8d74b5d1aaf904968b7a7ed1812c918"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty constructor. <br /></td></tr>
<tr class="separator:af8d74b5d1aaf904968b7a7ed1812c918"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab79fd1da0bd60fbd72a3695e690f892a"><td class="memItemLeft" align="right" valign="top"><a id="ab79fd1da0bd60fbd72a3695e690f892a"></a>
virtual&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html#ab79fd1da0bd60fbd72a3695e690f892a">~OctreeNodePool</a> ()</td></tr>
<tr class="memdesc:ab79fd1da0bd60fbd72a3695e690f892a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Empty deconstructor. <br /></td></tr>
<tr class="separator:ab79fd1da0bd60fbd72a3695e690f892a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2e575a8909fb19086220534218d0bb54"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html#a2e575a8909fb19086220534218d0bb54">pushNode</a> (NodeT *node_arg)</td></tr>
<tr class="memdesc:a2e575a8909fb19086220534218d0bb54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Push node to pool  <a href="classpcl_1_1octree_1_1_octree_node_pool.html#a2e575a8909fb19086220534218d0bb54">更多...</a><br /></td></tr>
<tr class="separator:a2e575a8909fb19086220534218d0bb54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29163848081bc89c075f717a450728f8"><td class="memItemLeft" align="right" valign="top">NodeT *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html#a29163848081bc89c075f717a450728f8">popNode</a> ()</td></tr>
<tr class="memdesc:a29163848081bc89c075f717a450728f8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Pop node from pool - Allocates new nodes if pool is empty  <a href="classpcl_1_1octree_1_1_octree_node_pool.html#a29163848081bc89c075f717a450728f8">更多...</a><br /></td></tr>
<tr class="separator:a29163848081bc89c075f717a450728f8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a40a3d9cfab83a2b89a9d5efc55801056"><td class="memItemLeft" align="right" valign="top"><a id="a40a3d9cfab83a2b89a9d5efc55801056"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html#a40a3d9cfab83a2b89a9d5efc55801056">deletePool</a> ()</td></tr>
<tr class="memdesc:a40a3d9cfab83a2b89a9d5efc55801056"><td class="mdescLeft">&#160;</td><td class="mdescRight">Delete all nodes in pool <br /></td></tr>
<tr class="separator:a40a3d9cfab83a2b89a9d5efc55801056"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected 属性</h2></td></tr>
<tr class="memitem:a2690d6bb5f38b1ce9ab7ae30b7f6e37a"><td class="memItemLeft" align="right" valign="top"><a id="a2690d6bb5f38b1ce9ab7ae30b7f6e37a"></a>
std::vector&lt; NodeT * &gt;&#160;</td><td class="memItemRight" valign="bottom"><b>nodePool_</b></td></tr>
<tr class="separator:a2690d6bb5f38b1ce9ab7ae30b7f6e37a"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><h3>template&lt;typename NodeT&gt;<br />
class pcl::octree::OctreeNodePool&lt; NodeT &gt;</h3>

<p><b>Octree</b> node pool </p>
<dl class="section note"><dt>注解</dt><dd>Used to reduce memory allocation and class instantiation events when generating octrees at high rate </dd></dl>
<dl class="section author"><dt>作者</dt><dd>Julius Kammerl (<a href="#" onclick="location.href='mai'+'lto:'+'jul'+'iu'+'s@k'+'am'+'mer'+'l.'+'de'; return false;">juliu<span style="display: none;">.nosp@m.</span>s@ka<span style="display: none;">.nosp@m.</span>mmerl<span style="display: none;">.nosp@m.</span>.de</a>) </dd></dl>
</div><h2 class="groupheader">成员函数说明</h2>
<a id="a29163848081bc89c075f717a450728f8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29163848081bc89c075f717a450728f8">&#9670;&nbsp;</a></span>popNode()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename NodeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">NodeT* <a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html">pcl::octree::OctreeNodePool</a>&lt; NodeT &gt;::popNode </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Pop node from pool - Allocates new nodes if pool is empty </p>
<dl class="section return"><dt>返回</dt><dd>Pointer to octree node </dd></dl>
<div class="fragment"><div class="line"><a name="l00087"></a><span class="lineno">   87</span>&#160;        {</div>
<div class="line"><a name="l00088"></a><span class="lineno">   88</span>&#160; </div>
<div class="line"><a name="l00089"></a><span class="lineno">   89</span>&#160;          NodeT* newLeafNode;</div>
<div class="line"><a name="l00090"></a><span class="lineno">   90</span>&#160; </div>
<div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;          <span class="keywordflow">if</span> (!nodePool_.size ())</div>
<div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;          {</div>
<div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;            <span class="comment">// leaf pool is empty</span></div>
<div class="line"><a name="l00094"></a><span class="lineno">   94</span>&#160;            <span class="comment">// we need to create a new octree leaf class</span></div>
<div class="line"><a name="l00095"></a><span class="lineno">   95</span>&#160;            newLeafNode = <span class="keyword">new</span> NodeT ();</div>
<div class="line"><a name="l00096"></a><span class="lineno">   96</span>&#160;          }</div>
<div class="line"><a name="l00097"></a><span class="lineno">   97</span>&#160;          <span class="keywordflow">else</span></div>
<div class="line"><a name="l00098"></a><span class="lineno">   98</span>&#160;          {</div>
<div class="line"><a name="l00099"></a><span class="lineno">   99</span>&#160;            <span class="comment">// reuse leaf node from branch pool</span></div>
<div class="line"><a name="l00100"></a><span class="lineno">  100</span>&#160;            newLeafNode = nodePool_.back ();</div>
<div class="line"><a name="l00101"></a><span class="lineno">  101</span>&#160;            nodePool_.pop_back ();</div>
<div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;            newLeafNode-&gt;reset ();</div>
<div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;          }</div>
<div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160; </div>
<div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;          <span class="keywordflow">return</span> newLeafNode;</div>
<div class="line"><a name="l00106"></a><span class="lineno">  106</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<a id="a2e575a8909fb19086220534218d0bb54"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e575a8909fb19086220534218d0bb54">&#9670;&nbsp;</a></span>pushNode()</h2>

<div class="memitem">
<div class="memproto">
<div class="memtemplate">
template&lt;typename NodeT &gt; </div>
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html">pcl::octree::OctreeNodePool</a>&lt; NodeT &gt;::pushNode </td>
          <td>(</td>
          <td class="paramtype">NodeT *&#160;</td>
          <td class="paramname"><em>node_arg</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Push node to pool </p>
<dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">node_arg</td><td>add this node to the pool </td></tr>
  </table>
  </dd>
</dl>
<div class="fragment"><div class="line"><a name="l00078"></a><span class="lineno">   78</span>&#160;        {</div>
<div class="line"><a name="l00079"></a><span class="lineno">   79</span>&#160;          nodePool_.push_back (node_arg);</div>
<div class="line"><a name="l00080"></a><span class="lineno">   80</span>&#160;        }</div>
</div><!-- fragment -->
</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>octree/include/pcl/octree/<a class="el" href="octree__node__pool_8h_source.html">octree_node_pool.h</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>pcl</b></li><li class="navelem"><b>octree</b></li><li class="navelem"><a class="el" href="classpcl_1_1octree_1_1_octree_node_pool.html">OctreeNodePool</a></li>
    <li class="footer">制作者 <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
  </ul>
</div>
</body>
</html>
